﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Xml.Linq;
using System.Xml;

namespace TransportMe
{
    public class CostCalculator
    {
        private double fuelCost = 2.1;//hardcoded

        public double calculateCarbonEmissionsByDistance(Car c, double distance) 
        {
            double result = 0;
            result = c.CO2Combined * distance; //CO2Combined unit is gCO2/km
            return result; //result unit is gCO2 (grams of Carbon dioxide)
        }
        public double calculateFuelConsumptionByDistance(Car c, double distance)
        {
            double result = 0;
            result = c.FuelConsumptionCombined * distance; //FuelConsumptionCombined unit is litres/km
            return result;
        }
        public double calculateFuelCostByDistance(Car c, double distance)
        {
            double result = 0;
            result = calculateFuelCostByDistance(c, distance) * fuelCost;
            return result;
        }
        public double calculateERPcost() 
        { 
            //total cost of erp that were passed by
        }

        public double calculateTimeNeededForRoad(double roadDistance, TrafficCondition avgSpeed)
        {
            
        }

        //contains all expressway time taken on the route.
        public double calculateEstimatedArrivalTimeForRoute(double expresswayTravelTime, double nonExpresswayTravelTime)
        {

        }

        public void calculate
    }
}
